#ifndef QUEUE_H
#define QUEUE_H


#include "NOW.h"

int q_init(PriorityQueue *queue, int maxsize);
int q_full(const PriorityQueue *queue);
int q_empty(const PriorityQueue *queue);
void q_push(PriorityQueue *queue, int index, Algorithm alg);
int q_push_occupy(PriorityQueue *queue, int pid);
int q_pop_occupy(PriorityQueue *queue, int pid);
int q_pop(PriorityQueue *queue);
int q_front(const PriorityQueue *queue);
int q_free(PriorityQueue* queue);
int q_popout(PriorityQueue* queue,int pid); //从队列指定剔除一个元素

#endif    